$block_reason = $wgUser->mBlock->mReason;
if ( strval( $block_reason ) === '' ) {
- $wgOut->addWikiMsg( 'cantcreateaccount-no-reason', $ip, $blocker );
- } else {
- $wgOut->addWikiMsg( 'cantcreateaccount-text', $ip, $block_reason, $blocker );
+ $block_reason = wfMsg( 'blockednoreason' );
}
+ $wgOut->addWikiMsg( 'cantcreateaccount-text', $ip, $block_reason, $blocker );
$wgOut->returnToMain( false );
}
'cantcreateaccount-text' => "Account creation from this IP address ('''$1''') has been blocked by [[User:$3|$3]].
The reason given by $3 is ''$2''",
-'cantcreateaccount-no-reason' => "Account creation from this IP address ('''$1''') has been blocked by [[User:$2|$2]]. No reason was given.",
# History pages
'viewpagelogs' => 'View logs for this page',